package com.linkgap.cloud.repo;

import com.linkgap.cloud.entity.Department;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentRepo extends JpaRepository<Department,Long>{
    List<Department> findAllByManagerId(Long managerId);
}
